//
//  NormalNoNavViewController.m
//  BigJoy
//
//  Created by Rowling on 2017/7/6.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "NormalNoNavViewController.h"

@interface NormalNoNavViewController ()<UINavigationControllerDelegate>

@end

@implementation NormalNoNavViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.navigationController.delegate = self;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    self.navigationController.delegate = self;
}

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
    // 判断要显示的控制器是否是自己
    BOOL isShowHomePage = [viewController isKindOfClass:[self class]];
    [self.navigationController setNavigationBarHidden:isShowHomePage animated:YES];
}



@end
